import request from '@/utils/request'
export default {
    listEntity() {
        return request({
            url: `/eduservice/admin/course/listEntity`,
            method: 'get'
        })
    },
    getListEntity(page, limit) {
        return request({
            url: `/eduservice/admin/course/getCourseFrontList/${page}/${limit}`,
            method: 'post'
        })
    },

    getCourseList(page, limit, searchObj) {
        return request({
            url: `/eduservice/admin/course/getCourseFrontList/${page}/${limit}`,
            method: 'post',
            data: searchObj
        })
    },
    // 获取课程二级分类
    getAllSubject() {
        return request({
            url: `/eduservice/subject/getTreeEntity`,
            method: 'get'
        })
    },
    getFrontCourseInfo(courseId){
        return request({
            url: `/eduservice/admin/course/getFrontCourseInfo/${courseId}`,
            method: 'get'
        })
    },
    getPlayAuth(videoSourceId){
        return request({
            url: `/api/vod/getVideoAuth/${videoSourceId}`,
            method: 'get'
        })
    }

   
}